package com.board.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.board.bo.BoardBO;
import com.board.model.Board;

@SuppressWarnings("serial")
public class IndexAction extends BaseAction {
	@Autowired
	private BoardBO boardBO;
	private List<Board> boardList;

	public String execute() throws Exception {
		boardList = boardBO.getBoardList();
		return SUCCESS;

	}

	public List<Board> getBoardList() {
		return boardList;
	}

}
